package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.EquipmentView
import com.hlhj.carview.bean.EquipmentListBean
import com.hlhj.carview.module.EquipmentModule

/**
 * Created by Never Fear   on 2018\12\21 0021.
Never More....
 */
class EquipmentPresenter :BasePresenter<EquipmentModule,EquipmentView>(), EquipmentView {
    override fun setEquipmentList(equipmentListBean: EquipmentListBean) {
        view?.setEquipmentList(equipmentListBean)
    }


    fun getErquipmentList(page:Int,c:Context){
        module?.getEquipmentList(page,c)
    }
    override fun createModule() {
        module=EquipmentModule()
        module?.lis=this
    }
}